package springMVC.connect;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author quan
 * @Description 组合注解@RestController = @ResponseBody + @Controller
 * @Date 2023/7/21 11:35
 */
@RestController
@RequestMapping("/web")
public class Demo3_RestController {
    @RequestMapping("/index3")
    public String index(){
        return "/index.html";
    }
}
